﻿@model IEnumerable<Prodcut>

<table>
    <thead>
        <tr>
            <td>@Html.DisplayNameFor(model=>model.Name)</td>
            <td>@Html.DisplayNameFor(model=>model.Price)</td>
            <td>@Html.DisplayNameFor(model=>model.Quantity)</td>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>@Html.DisplayFor(_=>item.Name)</td>
                <td>@Html.DisplayFor(_=>item.Price)</td>
                <td>@Html.DisplayFor(_=>item.Quantity)</td>
            </tr>
        }
    </tbody>

</table>